include ../makeconfig

OBJS	=main.o console.o elf_loader.o  \
	irq.o data_abort.o prefetch_abort.o \
	panic.o sched.o sys.o vsprintf.o \
	printk.o signal.o fork.o gui.o
	

../kernel.o:	$(OBJS)
	$(LD) $(OBJS) -r -o ../kernel.o 
%.o:%.c
	$(GCC) $(CFLAGS) $< -c -o $@
%.o:%.s
	$(AS) $(AFLAGS) $< -o $@

clean:
	rm -f *.o
	
main.o:main.c ../include/s3c2410/lcd.h ../include/s3c2410/timer.h ../include/s3c2410/nand_flash.h \
 ../include/s3c2410/cpu.h ../include/kernel/sched.h ../include/kernel/gui.h ../include/kernel/irq.h \
 ../include/kernel/task.h
console.o:console.c ../include/kernel/console.h ../include/s3c2410/lcd.h ../include/s3c2410/lcd.h \
 ../src/font_ascii8x8.src ../src/font_ascii8x8.src
elf_loader.o:elf_loader.c ../include/kernel/elf_loader.h
irq.o:irq.c ../include/kernel/irq.h ../include/kernel/sched.h ../include/s3c2410/cpu.h 
data_abort.o:data_abort.c ../include/kernel/data_abort.h ../include/s3c2410/cpu.h 
prefetch_abort.o:prefetch_abort.c ../include/kernel/prefetch_abort.h ../include/s3c2410/cpu.h 
sched.o:sched.c ../include/s3c2410/cpu.h ../include/kernel/sched.h ../include/kernel/irq.h \
 ../include/s3c2410/timer.h ../include/kernel/task.h ../include/kernel/typedef.h ../include/mm/mm.h \
 ../include/kernel/signal.h ../include/s3c2410/cpu.h 
sys.o:sys.c ../include/kernel/sched.h ../include/kernel/sys.h ../include/s3c2410/cpu.h 
fork.o:fork.c ../include/kernel/sched.h ../include/kernel/task.h ../include/s3c2410/cpu.h \
 ../include/kernel/sys.h
signal.o:signal.c ../include/kernel/signal.h
panic.o:panic.c
vsprintf.o:vsprintf.c 
printk.o:printk.c
gui.o:gui.c